/**
 * Created with JetBrains WebStorm.
 * User: mumble
 * Date: 7/7/12
 * Time: 10:28 PM
 * To change this template use File | Settings | File Templates.
 */

var Defines = {
    CONTROL_PACKAGE : 1,
    PING_PACKAGE : 2,
    GAME_PACKAGE : 3
}

var MessageDef = {
    LOGIN_MSG : 1,
    LOGOUT_MSG : 2,
    GAMELIST_MSG : 3,
    CHOSEGAME_MSG : 4,
    CHOSEROOM_MSG : 5
}


var instance = null;

function getInstance()
{
    if(instance == null)
        instance = Defines;
    return instance;
}

module.exports.Defines = getInstance();

